/*
 *
 *  File: 'test_SPCounter.cpp'
 *
 *  Author: Samip Shah <samipshah@alumni.cmu.edu>
 *  Date: Sep 11, 2011
 *
 */

#include<SPCounter.h>
#include <stdio.h>

int main(int argc, char** argv)
{
	unsigned char limits[5] = { 1, 3, 0, 0, 5 };
	unsigned char cnt[3] = {0,1, 4};;
	SPCounter<unsigned char>  test(limits, sizeof(limits));

	test.setIndexes(cnt, sizeof(cnt));

	test.printData();
	while(test.next(cnt)) {
		for(int i = 0; i < sizeof(cnt) ; i++ )
			printf("%d", cnt[i]);

		printf("\n");
	}
	return 0;
}
